'use strict'

class Random {
    constructor() {
        this.seed = Math.floor(Math.random() * 65536)
        this.x =  this.seed
    }

    getRand() {
        this.x = (901 * this.x + 1234) % 65536
        return this.x % 100
    }
}
module.exports = Random
